package org.daidai.abstrusewriting.homepage.hot.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2016/11/3.
 */

public class Item implements Parcelable{
        @SerializedName("id")
        private String id;
        @SerializedName("albumId")
        private String albumId;
        @SerializedName("uid")
        private String uid;
        @SerializedName("intro")
        private String intro;
        @SerializedName("nickname")
        private String nickname;
        @SerializedName("trackTitle")
        private String trackTitle;
        @SerializedName("coverSmall")
        private String coverSmall;
        @SerializedName("coverMiddle")
        private String coverMiddle;
        @SerializedName("title")
        private String title;
    @SerializedName("tags")
    private String tags;
    @SerializedName("playsCounts")
    private String playsCounts;

    protected Item(Parcel in) {
        id = in.readString();
        albumId = in.readString();
        uid = in.readString();
        intro = in.readString();
        nickname = in.readString();
        trackTitle = in.readString();
        coverSmall = in.readString();
        coverMiddle = in.readString();
        title = in.readString();
        tags = in.readString();
        playsCounts = in.readString();
    }

    public static final Creator<Item> CREATOR = new Creator<Item>() {
        @Override
        public Item createFromParcel(Parcel in) {
            return new Item(in);
        }

        @Override
        public Item[] newArray(int size) {
            return new Item[size];
        }
    };

    public String getPlaysCounts() {
        return playsCounts;
    }

    public String getTags() {
        return tags;
    }

    public String getTitle() {
            return title;
        }

        public String getAlbumId() {
            return albumId;
        }

        public String getId() {
            return id;
        }

        public String getIntro() {
            return intro;
        }

        public String getNickname() {
            return nickname;
        }

        public String getUid() {
            return uid;
        }

        public String getTrackTitle() {
            return trackTitle;
        }

        public String getCoverSmall() {
            return coverSmall;
        }

        public String getCoverMiddle() {
            return coverMiddle;
        }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(albumId);
        dest.writeString(uid);
        dest.writeString(intro);
        dest.writeString(nickname);
        dest.writeString(trackTitle);
        dest.writeString(coverSmall);
        dest.writeString(coverMiddle);
        dest.writeString(title);
        dest.writeString(tags);
        dest.writeString(playsCounts);
    }
}
